package com.codeforces.contest.c20;

import java.util.Scanner;

public class _20A {

	static Scanner scanner = new Scanner(System.in);
	static String s;
	static StringBuilder b = new StringBuilder();

	public static void main(String[] args) {
		s = scanner.next();
		for (int i=0;i<s.length();++i) {
			char c = s.charAt(i);
			if (c != '/') {
				b.append(c);
			}
			else {
				b.append(c);
				int j = i+1;
				while (j < s.length() && s.charAt(j) == '/') {
					j++;
				}
				i = j - 1;
			}
		}
		s = b.toString();
		int len = b.length();
		if (len > 1) {
			if (b.charAt(len-1) == '/') {
				s = b.substring(0, len-1);
			}
		}
		System.out.println(s);
	}

}
